#include "about.h"
#include "ui_about.h"

#include <QPaintEvent>
#include <QPainter>

About::About(QWidget *parent) :
  QDialog(parent),
  ui(new Ui::About),
  m_logo(":/images/about/logo.png") {
  ui->setupUi(this);
  setWindowTitle(QApplication::applicationDisplayName());
  connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &About::close);
}

About::~About() {
  delete ui;
}

void About::paintEvent(QPaintEvent *event)
{
  Q_UNUSED(event);
  QPainter painter(this);
  painter.drawPixmap(0, 0, width(), height(), m_logo);
}


